package com.bw.shop.room

import android.app.Application
import androidx.room.Database
import androidx.room.Room

class DataUtils {

    companion object{

        private lateinit var dataBase: CartDataBase

        fun init(application: Application){
            dataBase= Room.databaseBuilder(application, CartDataBase::class.java,"SX1")
                .allowMainThreadQueries()
                .build()
        }

        fun GetCartDB() = dataBase
    }
}